#!/bin/bash
# #1 
gnome-terminal -- bash -c "export PX4_SIM_HOST_ADDR=192.168.16.13;source /opt/ros/foxy/setup.bash;source /home/nvidia/soft_simulate/install/setup.bash;ros2 launch uav_swarms getlocalpos_node_launch.py vehicle_num:=3; exec bash"
gnome-terminal -- bash -c "export PX4_SIM_HOST_ADDR=192.168.16.13;source /opt/ros/foxy/setup.bash;source /home/nvidia/soft_simulate/install/setup.bash; ros2 launch uav_swarms avoid_node_launch.py  vehicle_num:=3; exec bash"

#2, tongxin
gnome-terminal -- bash -c "export PX4_SIM_HOST_ADDR=192.168.16.13;source /opt/ros/foxy/setup.bash;source /home/nvidia/soft_simulate/install/setup.bash; ros2 launch uav_swarms communication_multirotor_node0_launch.py; exec bash"

gnome-terminal -- bash -c "export PX4_SIM_HOST_ADDR=192.168.16.13;source /opt/ros/foxy/setup.bash; source /home/nvidia/soft_simulate/install/setup.bash;ros2 launch uav_swarms communication_multirotor_node1_launch.py; exec bash"

gnome-terminal -- bash -c "export PX4_SIM_HOST_ADDR=192.168.16.13;source /opt/ros/foxy/setup.bash; source /home/nvidia/soft_simulate/install/setup.bash;ros2 launch uav_swarms communication_multirotor_node2_launch.py; exec bash"

# source /opt/ros/foxy/setup.bash; source /home/nvidia/soft_simulate/install/setup.bash;ros2 launch uav_swarms yijianqife_launch.py